﻿<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<DoAnPhatTrienPhanMem.Models.RegisterModel>" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <script src="/Scripts/CommonFunction.js" type="text/javascript"></script>
    <script src="/Scripts/Constant.js" type="text/javascript"></script>
    <link href="/Content/MainStyle.css" rel="stylesheet" type="text/css" />
    <script runat="server">
        private void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Ext.Net.MenuItem node;
                node = new Ext.Net.MenuItem { Text = "Danh sách tài khoản" };
                //node.Listeners.Click.Handler = "CommonFunction.loadPage('Canbo','Index', '');";
                MainMenu.Menu.Add(node);
                node = new Ext.Net.MenuItem { Text = "regis" };
                node.Listeners.Click.Handler = "CommonFunction.loadPage('Account','Register', '');";
                MainMenu.Menu.Add(node);

            }
        }
    </script>
</head>
<body id="bd" class="fs3">
    <ext:ResourceManager ID="ResourceManager1" runat="server" Locale="vi-VN" CleanResourceUrl="false" />
    <div id="ja-wrapper">
        <div id="ja-container" class="wrap clearfix">
            <div class="main">
                <div class="inner clearfix">
                    <div id="ja-mainbody">
                        <h2>
                            Create a New Account</h2>
                        <p>
                            Use the form below to create a new account.
                        </p>
                        <p>
                            Passwords are required to be a minimum of
                            <%: Membership.MinRequiredPasswordLength %>
                            characters in length.
                        </p>
                        <script src="<%: Url.Content("~/Scripts/jquery.validate.min.js") %>" type="text/javascript"></script>
                        <script src="<%: Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js") %>"
                            type="text/javascript"></script>
                        <% using (Html.BeginForm())
                           { %>
                        <%: Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.") %>
                        <div>
                            <fieldset>
                                <legend>Account Information</legend>
                                <div class="editor-label">
                                    <%: Html.LabelFor(m => m.UserName) %>
                                </div>
                                <div class="editor-field">
                                    <%: Html.TextBoxFor(m => m.UserName) %>
                                    <%: Html.ValidationMessageFor(m => m.UserName) %>
                                </div>
                                <div class="editor-label">
                                    <%: Html.LabelFor(m => m.Email) %>
                                </div>
                                <div class="editor-field">
                                    <%: Html.TextBoxFor(m => m.Email) %>
                                    <%: Html.ValidationMessageFor(m => m.Email) %>
                                </div>
                                <div class="editor-label">
                                    <%: Html.LabelFor(m => m.Password) %>
                                </div>
                                <div class="editor-field">
                                    <%: Html.PasswordFor(m => m.Password) %>
                                    <%: Html.ValidationMessageFor(m => m.Password) %>
                                </div>
                                <div class="editor-label">
                                    <%: Html.LabelFor(m => m.ConfirmPassword) %>
                                </div>
                                <div class="editor-field">
                                    <%: Html.PasswordFor(m => m.ConfirmPassword) %>
                                    <%: Html.ValidationMessageFor(m => m.ConfirmPassword) %>
                                </div>
                                <p>
                                    <input type="submit" value="Register" />
                                </p>
                            </fieldset>
                        </div>
                        <% } %>
                    </div>
                    <div id="ja-colwrap">
                        <div class="ja-innerpad">
                            <div id="Mod1" class="moduletable_menu">
                                <div class="ja-box-ct">
                                    <ul class="menu">
                                        <ext:MenuPanel runat="server" ID="MainMenu" Header="false" Border="false" />
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>
